#include"patterns.h"
#include"util.h"
#include<cstdio>

int board[14*14];
void search(int x);
int main()
{
	board_size =3;
	search(0);
}

void search(int x) {
	if(x == 9) {
		int b = matchpattern2(2,1,BLACK, board);
		bool a = matchpattern(2,1,BLACK, board);
		
		if (a != (b>0)) {
			printf("new :%d old: %d\n",a,b);
			for(int i =0; i < 3; i++){
                for(int j =0; j < 3; j++)
                    printf("%d", board[POS(i,j)]);
                printf("\n");
            }
            printf("\n");
		}
        return;
	}
    else {
        board[POS(x/3, x%3)] = EMPTY;
        search(x+1);
        board[POS(x/3, x%3)] = WHITE;
        search(x+1);
        board[POS(x/3, x%3)] = BLACK;
        search(x+1);

    }
    
}
